package com.mall.czlr.base.service;

import com.baomidou.mybatisplus.service.IService;

public interface IBaseService<T> extends IService<T> {
    /**
     * 插入一条记录并返回
     * @param entity
     * @return
     */
    T insertReturn(T entity);

    /**
     * 更新一条记录并返回
     * @param entity
     * @return
     */
    T updateByIdReturn(T entity) throws Exception;
}
